﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InPhieuXuatKho.aspx.cs" Inherits="InPhieuXuatKho" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        body 
        {
	        color: black; 
	        margin: 0; 
	        padding: 0; 
	        margin-top:0;
        }
        /* Display Styles */

        .tableDep
        {
            border-width: 0 0 1px 1px;
            border-spacing: 0;
            border-collapse: collapse;
            border-color: #600;
            border-style: solid;
        }
        .tdDep
        {
            margin: 0;
            padding: 4px;
            border-width: 1px 1px 0 0;
            border-color: #600;
            border-style: solid;
        }
        .thDep
        {
            margin: 0;
            padding: 4px;
            border-width: 1px 1px 0 0;
            border-color: #600;
            border-style: solid;
        }
        .PanelStyle
        {
	        text-align:center;
        }
        .MucNhap{
        color:#000099;
        border-bottom: 1px dotted black; 
        border-left:none; 
        border-top:none; 
        border-right:none; 
        font-weight:bold;
        }
        .LabelGachDuoi
        {
	        color:#000099;
	        border-top-width : 0px;
	        border-right-width : 0px;
	        border-bottom-width : 0px;
	        border-left-width : 0px;
	        width:auto;
	        font-weight:bold;
        }
    </style>

    <script src="../js/common.js"></script>

</head>
<body style="background-color: #ffffff">
    <form id="form1" runat="server" style="padding: 20px 20px 20px 50px;">
        
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td width="20px">
                </td>
                <td width="100%">
                    <p style="text-align: center">
                        <span style="font-size: 18pt"><strong>
                            PHIẾU XUẤT KHO<br />
                        </strong></span><span class="Subhead">
                        
                        Ngày&nbsp;<asp:Label runat="server" ID="lblNgay"></asp:Label></span>
                    </p>
                    <asp:Panel runat="server" ID="pnThongTinKhachHang" Width="100%">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td width="20" nowrap style="height: 19px">
                                    &nbsp;</td>
                                <td width="100%" class="Subhead" style="height: 19px">
                                    Cửa hàng:&nbsp;<asp:Label ID="lblChiNhanh" runat="server" CssClass="LabelGachDuoi"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap style="height: 19px" width="20">
                                    &nbsp;</td>
                                <td class="Subhead" style="height: 19px" width="100%">
                                    Hóa đơn:
                                    <asp:Label ID="lblMaHoaDon" runat="server" Font-Bold="True" Font-Italic="True" 
                                        ForeColor="#FF0066"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="20" nowrap style="height: 19px">
                                </td>
                                <td width="100%" style="height: 19px" class="Subhead">
                                    Khách hàng:
                                    <asp:Label runat="server" ID="lblKhachHang" CssClass="LabelGachDuoi"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap style="height: 20px" width="20">
                                </td>
                                <td style="height: 20px" width="100%">
                                    Ghi chú:
                                    <asp:Label ID="lblNoiDung" runat="server" CssClass="LabelGachDuoi"></asp:Label>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <table class="borderTable" width="100%">
                            <tr>
                                <td nowrap style="width: 20px">
                                </td>
                                <td width="100%" class="Subhead">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <table class="tableDep" bordercolor="black" cellpadding="0" cellspacing="0" width="100%">
                                        <tr style="background-color: #EFFEFF;">
                                            <th class="thDep">
                                                <strong>STT</strong></th>
                                            <th class="thDep">
                                                Mã hàng</th>
                                            <th class="thDep">
                                                <strong>Tên hàng</strong></th>
                                            <th class="thDep">
                                                <strong>Giá bán</strong></th>
                                            <th class="thDep">
                                                <strong>Chiết khấu (%)</strong></th>
                                            <th class="thDep">
                                                <strong>Thành tiền</strong></th>
                                        </tr>
                                        <asp:Literal runat="server" ID="lblDetailGrid"></asp:Literal>
                                        <tr>
                                            <td class="tdDep" bgcolor="white">
                                                <strong></strong>
                                            </td>
                                            <td class="tdDep" bgcolor="white">
                                                <strong>Cộng</strong></td>
                                            <td class="tdDep" bgcolor="white" colspan="3">
                                                <strong></strong><strong></strong><strong></strong><strong></strong>
                                            </td>
                                            <td class="tdDep" bgcolor="white" style="text-align: right">
                                                <strong>
                                                    <asp:Label ID="lblTongTienBangSo" runat="server" CssClass="LabelGachDuoi"></asp:Label></strong></td>
                                        </tr>
                                    </table>
                                    <asp:SqlDataSource ID="dsDetail" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                                        ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>" SelectCommandType="StoredProcedure">
                                    </asp:SqlDataSource>
                                </td>
                            </tr>
                        </table>
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td nowrap style="height: 19px; width: 20px;">
                                </td>
                                <td width="100%" class="Subhead" style="height: 19px">
                                    Tổng số tiền (bằng chữ):<asp:Label runat="server" ID="lblTongTienBangChu" CssClass="LabelGachDuoi"></asp:Label></td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td width="20px" nowrap>
                </td>
            </tr>
        </table>
        <br />
        &nbsp;<br />
        <asp:Label Visible="false"
                                            runat="server" ID="lblNguoiNhan_FullName" CssClass="LabelGachDuoi"></asp:Label><br />
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="text-align: center" valign="top" width="25%">
                    <em>Người bán hàng<br />
                    </em>
                    <br />
                    <br />
                    <br />
                                    <asp:Label runat="server" ID="lblNguoiBan" 
                        CssClass="LabelGachDuoi"></asp:Label>
                    <br />
                </td>
                <td style="text-align: center; padding-right:5px;" valign="top" width="25%">
                    &nbsp;</td>
                <td width="25%" valign="top" style="text-align: center">
                    &nbsp;</td>
                <td width="25%" valign="top" style="text-align: center; padding-left:5px;">
                    &nbsp;</td>
            </tr>
        </table>
                                
                                <asp:SqlDataSource ID="dsTenChiNhanh" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                                    ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="ds" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                        ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>"></asp:SqlDataSource>
    </form>
</body>
</html>

<script language="javascript">
    function disableClick(input){
        input.checked == true ? input.checked = false : input.checked = true;
    }
     //Ham nay de in trang này với định dạng html
    function printPage(a){
        a.style.display="none";
        window.print();
        a.style.display="block";
    }
</script>

